package com.lanou.service.imp;

import com.lanou.bean.Module;
import com.lanou.mapper.ModuleMapper;
import com.lanou.service.ModuleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dllo on 18/3/12.
 */
@Service
public class ModuleServiceImpl implements ModuleService {
    @Resource
    private ModuleMapper moduleMapper;
    @Override
    public List<Module> module(String username) {
        return moduleMapper.findMouleByName(username);
    }

    @Override
    public List<Module> moduleall() {
        return moduleMapper.allModule();
    }
}
